var express = require('express')
var router = express.Router()
const { getAll, getById, exec } = require('../db')

/* GET users listing. */
router.get('/gg_notice', async function (req, res, next) {
	let sql = `SELECT * FROM gg_notice ORDER BY notice_time DESC LIMIT 0,1 `
	const data = await exec(sql)
	res.send({
		code: 1,
		message: '成功',
		result: data,
	})
})

module.exports = router
